<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件修饰符</title>
</head>
<body>
<div id="app">
    <a href="http://www.baidu.com" v-on:click.prevent="say">点我</a>
</div>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    var app = new Vue({
        el : "#app",
        methods:{
            say(){
                alert("你点我了,疼")
            }


        }

    })
</script>
</body>
</html>